<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:s="http://sduept.security.el/func"
	template="/template/template_dialog.xhtml">
	<ui:define name="head">
	
	  <link href='/resources/plugins/layer/skin/layer.css' rel='stylesheet' />
	  <script>
	   function closeAndSave(){
				var index = parent.layer.getFrameIndex(window.name);
				if(parent.dialogReturn){
					parent.dialogReturn(index);
				}
				parent.layer.close(index);
			}
	  
	  
	  
	  </script>
	  
	  
	  
	</ui:define>
	<ui:define name="content">
	     <h:form id="editForm">
	            <p:toolbar>
					<f:facet name="left">
						<p:commandButton value="保存" icon="ui-icon-disk"  update=":editForm:msgs"
							 actionListener="#{hiddenDangerTrackDetailController.updateTrack}"
							  onclick="closeAndSave()"  /><!--   rendered="#{hiddenDangerTrackDetailController.status}" -->
					     <!-- <p:inputText  value = "#{hiddenDangerTrackDetailController.changeStatus}"></p:inputText> -->
					</f:facet>
				</p:toolbar>
		        <p:growl id="msgs" showDetail="true" />
		      <p:accordionPanel  multiple = "true"   dynamic ="true">
		       <p:tab title="基本信息" titleStyle="font-weight:bold"  closable ="true" >
				<p:panelGrid id="baseMessage" header="基本信息" style="margin-top:10px;" styleClass="ui-noborder">
				    <p:row >
				        <p:column>
				          <p:outputLabel value="被检单位:" />
				       </p:column>
				       <p:column>
				           <p:inputText value="#{hiddenDangerTrackDetailController.currentTrack.inspectedUnit}" />
				       </p:column>
				        <p:column>
				           <p:outputLabel value="被检变电站：" />
				       </p:column>
				       <p:column>
				           <p:inputText	value="#{hiddenDangerTrackDetailController.currentTrack.inspectedSubstation}" />
				       </p:column>
				       
				       <p:column>
				          <p:outputLabel value="电压等级：" />
				       </p:column>
				       <p:column>
				        <p:autoComplete id="basic"
							value="#{hiddenDangerTrackDetailController.currentTrack.voltageLevel}"
							completeMethod="#{hiddenDangerTrackController.completeVoltage}"
							 dropdown="true" />
				       </p:column>
				    </p:row>
				     <p:row >
				       <p:column>
				          <p:outputLabel value="被检分子公司 ：" />
				       </p:column>
				       <p:column>
				         <p:inputText value="#{hiddenDangerTrackDetailController.currentTrack.inspectedMoleculeCompany}" />
				       </p:column>
				       <p:column>
				          <p:outputLabel value="责任单位 ：" />
				       </p:column>
				       <p:column>
				         <p:inputText  value="#{hiddenDangerTrackDetailController.currentTrack.responsibleUnit}" />
				       </p:column>
				       <p:column>
				           <p:outputLabel value="专家派出分子公司：" />
				       </p:column>
				       <p:column>
				           <p:inputText	value="#{hiddenDangerTrackDetailController.currentTrack.expertOfCompany}" />
				       </p:column>
				    </p:row>
					<p:row >
					   <p:column>
				          <p:outputLabel value="存在问题设备：" />
				       </p:column>
				       <p:column  colspan="3" >
				         <p:inputTextarea  cols = "60"
								value="#{hiddenDangerTrackDetailController.currentTrack.problemEquipment}"
								autoResize="false"  />
				       </p:column>
				      
				        <p:column>
				          <p:outputLabel value="间隔名称：" />
				       </p:column>
				        <p:column  colspan="3" >
				         <p:inputTextarea  cols = "60"
								value="#{hiddenDangerTrackDetailController.currentTrack.intervaName}"
								autoResize="false"  />
				       </p:column>
				     </p:row>
				     
				     <p:row>
			         <p:column>
				          <p:outputLabel value="隐患描述:" />
				       </p:column>
				       <p:column  colspan="3" >
				         <p:inputTextarea  cols = "60"
								value="#{hiddenDangerTrackDetailController.currentTrack.hiddenDangerDesc}"
								autoResize="false"   />
				       </p:column>
			        
			      </p:row>
				     	
				</p:panelGrid>
			   </p:tab>
			  <p:tab title="整改信息" titleStyle="font-weight:bold"  closable ="true"  dynamic ="true">
			    <p:panelGrid  header="整改信息" style="margin-top:10px;" styleClass="ui-noborder">
			       <p:row >
					       <p:column>
					          <p:outputLabel value="整改计划时间：" />
					       </p:column>
					       <p:column>
					         <p:calendar value="#{hiddenDangerTrackDetailController.currentTrack.rectifyPlanTime}" navigator="true"
							pattern="yyyy-MM-dd HH:mm:ss" showHour="true" showMinute="true" showSecond="true" />
					       </p:column>
					       <p:column>
					           <p:outputLabel value="整改完成时间：" />
					       </p:column>
					       <p:column>
					           <p:calendar size="22" value="#{hiddenDangerTrackDetailController.currentTrack.completTimeOfRectify}" navigator="true"
							   pattern="yyyy-MM-dd HH:mm:ss" showHour="true" showMinute="true" showSecond="true" />
					       </p:column>
					       <p:column>
					          <p:outputLabel value="是否完成整改：" />
					       </p:column>
					       <p:column>
					           <h:selectOneMenu id="rectifyFinished" value="#{hiddenDangerTrackDetailController.currentTrack.rectifyFinished}"
									style="width:160px;height:30px">
									<f:selectItem itemLabel="完成" itemValue="1" />
									<f:selectItem itemLabel="未完成" itemValue="0" />
							   </h:selectOneMenu>
					       </p:column>
				        </p:row>
				        <p:row >
				           <p:column>
					           <p:outputLabel value="月度整改进度：" />
					       </p:column>
					       <p:column>
					          <p:inputText id="monthRectifyProgress" value="#{hiddenDangerTrackDetailController.currentTrack.monthRectifyProgress}"/>
					       </p:column>
					       <p:column >
					          <p:outputLabel value="整改计划及进度：" />
					       </p:column>
					       <p:column  colspan="2" >
					          <p:inputText size="22" value="#{hiddenDangerTrackDetailController.currentTrack.rectifyPlanProgress}" />
					       </p:column>
				      </p:row>
			      <p:row>
			          <p:column>
					      <p:outputLabel value="整改方案:" />
					  </p:column>
					  <p:column   colspan="3" >
			           <p:inputTextarea   cols = "60"
							value="#{hiddenDangerTrackDetailController.currentTrack.rectificationPlan}"
							autoResize="false" id="rectificationPlan1" />
					  </p:column>
			         <p:column>
			        	  <p:outputLabel value="被检单位意见：" />
			      	 </p:column>
			      	 <p:column  colspan="3">
			             <p:inputTextarea rows="3"  cols="60" value="#{hiddenDangerTrackDetailController.currentTrack.opinionsOfUint}"
					     autoResize="false" />
					 </p:column>
			      </p:row>
			      <p:row>
			         
					 <p:column>
				          <p:outputLabel value="申诉说明：" />
				     </p:column>
				     <p:column  colspan="3">
				        <p:inputTextarea rows="3" cols="60" value="#{hiddenDangerTrackDetailController.currentTrack.stateOfUnit}"
						autoResize="false">
					    </p:inputTextarea>
				     </p:column>
			      </p:row> 
			     </p:panelGrid>
			  </p:tab>
				<p:tab title="人员信息"  titleStyle="font-weight:bold">
					<p:panelGrid styleClass="ui-noborder" border="0px" width="100"	>
					 <p:row >
				       <p:column>
				          <p:outputLabel value="检查专家：" />
				       </p:column>
				       <p:column>
				         <p:inputText value="#{hiddenDangerTrackDetailController.currentTrack.inspectionExpert}" />
				       </p:column>
				       <p:column>
				           <p:outputLabel value="迎检人员：" />
				       </p:column>
				       <p:column>
				           <p:inputText	value="#{hiddenDangerTrackDetailController.currentTrack.checkInPerson}" />
				       </p:column>
				       <p:column>
				          <p:outputLabel value="整改负责人员:" />
				       </p:column>
				       <p:column>
				           <p:inputText value="#{hiddenDangerTrackDetailController.currentTrack.personOfRectifyTel}" />
				       </p:column>
				     </p:row>
					 <p:row >
				       <p:column>
				          <p:outputLabel value="检查专家电话：" />
				       </p:column>
				       <p:column>
				         <p:inputText value="#{hiddenDangerTrackDetailController.currentTrack.inspectionExpertTel}" />
				       </p:column>
				       <p:column>
				           <p:outputLabel value="迎检人员电话：" />
				       </p:column>
				       <p:column>
				           <p:inputText	value="#{hiddenDangerTrackDetailController.currentTrack.checkInPersonTel}" />
				       </p:column>
				       <p:column>
				          <p:outputLabel value="整改负责人员电话:" />
				       </p:column>
				       <p:column>
				           <p:inputText value="#{hiddenDangerTrackDetailController.currentTrack.personOfRectifyTel}" />
				       </p:column>
				     </p:row>
					</p:panelGrid>
				</p:tab>
				<p:tab title="评价信息"  titleStyle="font-weight:bold">
					<p:panelGrid styleClass="ui-noborder" width="100" >
					 <p:row >
				       <p:column>
				          <p:outputLabel value="评价项目：" />
				       </p:column>
				       <p:column>
				         <p:inputText value="#{hiddenDangerTrackDetailController.currentTrack.inspectionPlanName}" />
				       </p:column>
				       <p:column>
				           <p:outputLabel value="检查子项：" />
				       </p:column>
				       <p:column>
				           <p:inputText	value="#{hiddenDangerTrackDetailController.currentTrack.checkSubitem}" />
				       </p:column>
				       <p:column>
				          <p:outputLabel value="管辖专业：" />
				       </p:column>
				       <p:column>
				            <p:autoComplete id="jSpecialty" value="#{hiddenDangerTrackDetailController.currentTrack.jurisdictionalSpecialty}"
							      completeMethod="#{hiddenDangerTrackController.completeHiddenDangerJSpecialty}" 
							      scrollHeight="400" dropdown="true" >
							</p:autoComplete>
				       </p:column>
				     </p:row>
					 <p:row >
				       <p:column>
				          <p:outputLabel value="对应表单规范序号：" />
				       </p:column>
				       <p:column>
				         <p:inputText value="#{hiddenDangerTrackDetailController.currentTrack.specificationNumber}" />
				       </p:column>
				       <p:column>
				           <p:outputLabel value="序号：" />
				       </p:column>
				       <p:column>
				           <p:inputText	value="#{hiddenDangerTrackDetailController.currentTrack.sno}" />
				       </p:column>
				       
				        <p:column>
				           <p:outputLabel value="隐患来源：" />
				       </p:column>
				       <p:column>
				           <p:autoComplete id="hiddenDangerSources" value="#{hiddenDangerTrackDetailController.currentTrack.sourcesOfHiddenDanger}"
								 completeMethod="#{hiddenDangerTrackController.completeHiddenDangerSources}"
								 scrollHeight="400" dropdown="true" />
				       </p:column>
				     </p:row>
					  <p:row >
				       <p:column>
				          <p:outputLabel value="对应分类：" />
				       </p:column>
				       <p:column>
				         <p:autoComplete id="classify"
								value="#{hiddenDangerTrackDetailController.currentTrack.classify}"
								completeMethod="#{hiddenDangerTrackController.completeClassify}"
								scrollHeight="400" dropdown="true" />
				       </p:column>
				        <p:column>
				          <p:outputLabel value="扣分情况：" />
				       </p:column>
				       <p:column>
				           <p:inputText value="#{hiddenDangerTrackDetailController.currentTrack.scoreDeduction}" />
				       </p:column>
				    
				       <p:column>
				          <p:outputLabel value="原因归类：" />
				       </p:column>
				       <p:column>
				           <p:autoComplete id="hiddenDangerReasonClass" value="#{hiddenDangerTrackDetailController.currentTrack.hiddenDangerReasonClass}"
							      completeMethod="#{hiddenDangerTrackController.completeHiddenDangerReasonClass}" 
							      scrollHeight="400" dropdown="true" >
							</p:autoComplete>
				       </p:column>
				     </p:row>
					 <p:row >
				        <p:column>
				          <p:outputLabel value="隐患等级：" />
				       </p:column>
				       <p:column>
				         <p:autoComplete id="hiddenDangerGrade"
								value="#{hiddenDangerTrackDetailController.currentTrack.hiddenDangerGrade}"
								completeMethod="#{hiddenDangerTrackController.completeHiddenGrade}"
								scrollHeight="400" dropdown="true" />
				       </p:column>
				       <p:column>
				           <p:outputLabel value="得分情况：" />
				       </p:column>
				       <p:column>
				           <p:inputText	value="#{hiddenDangerTrackDetailController.currentTrack.scores}" />
				       </p:column>
				       <p:column>
				           <p:outputLabel value="问题归类：" />
				       </p:column>
				       <p:column>
				          <p:autoComplete id="hiddenDangerQuesClass" value="#{hiddenDangerTrackDetailController.currentTrack.hiddenDangerProblemClass}"
							     completeMethod="#{hiddenDangerTrackController.completeHiddenDangerQuesClass}" 
							     scrollHeight="400" dropdown="true" >
						  </p:autoComplete>
				       </p:column>
				      </p:row>
				      <p:row >
				       <p:column>
				          <p:outputLabel value="评分标准：" />
				       </p:column>
				       <p:column  colspan="3">
			             <p:inputTextarea rows="3"  cols="60" value="#{hiddenDangerTrackDetailController.currentTrack.scoreCriteria}"
					     autoResize="false" />
					    </p:column>
				       <p:column>
				          <p:outputLabel value="检查要素及要求：" />
				       </p:column>
				         <p:column  colspan="3">
			             <p:inputTextarea rows="3"  cols="60" value="#{hiddenDangerTrackDetailController.currentTrack.elementAndRequest}"
					      autoResize="false" />
					    </p:column>
				      </p:row>
					</p:panelGrid>
					</p:tab>
					<p:tab title="其他"  titleStyle="font-weight:bold">
					<p:panelGrid styleClass="ui-noborder" border="0px" width="100">
				           <p:row >
						       <p:column>
						          <p:outputLabel value="备注：" />
						       </p:column>
						       <p:column>
							        <p:inputTextarea cols="60" value="#{hiddenDangerTrackDetailController.currentTrack.remark}"
								    	autoResize="false" >
								     </p:inputTextarea>
						       </p:column>
				           </p:row>
				       </p:panelGrid>
				      </p:tab>
				     </p:accordionPanel> 
		</h:form>
	</ui:define>
</ui:composition>